package com.lp.user.mapper;

import com.lp.model.dto.user.UserRegDto;
import com.lp.model.entity.user.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    User selectUserByName(@Param("username") String username);

    void add(UserRegDto regDto);

    User selectUserById(@Param("id") Long id);

    void update(User user);
}
